<%@ page import="org.acegisecurity.ui.AbstractProcessingFilter" %>
<%@ page import="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter" %>
<%@ page import="org.acegisecurity.AuthenticationException" %>

<div align="center">
<div id="login" style="width: 250px">
<form action="<c:url value='j_acegi_security_check'/>" method="post">
		<table class="nobordertable">
			<tr>
				<td colspan="2">
					<c:if test="${message!=null}">
					<div>
						<c:out value="${message}" />
					</div>
					</c:if>
					<c:if test="${not empty param.login_error}">
      					<font color="red">
        				Your login attempt was not successful, try again.
      					</font>
    				</c:if>
				</td>
			</tr>
			<tr>
				<td colspan="2" align="center"><fmt:message key="html.login"/></td>
			</tr>
			<tr>
				<td align="right"><fmt:message key="user.email"/></td>
				<td><input type='text' name='j_username' <c:if test="${not empty param.login_error}">value='<c:out value="${ACEGI_SECURITY_LAST_USERNAME}"/>'</c:if>></td>
			</tr>
			<tr>
				<td align="right"><fmt:message key="user.password"/></td>
				<td><input type='password' name='j_password'></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td align="left">&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="_acegi_security_remember_me"><fmt:message key="html.rememberName"/></td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<input name="submit" type="reset" value="<fmt:message key="html.reset"/>"/>
					<input name="submit" type="submit" value="<fmt:message key="html.submit"/>">
				</td>
			</tr>
			<tr>
				<td align="center" colspan="2">
					<a href="register.jsp"><fmt:message key="html.register"/></a>
					&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="#"><fmt:message key="html.getPassword"/></a>
				</td>
			</tr>
			<tr>
				<td align="center" colspan="2">
				<hr align="center" noshade="noshade" width="90%" size="1">
				</td>
			</tr>
			<tr>
				<td align="center" colspan="2">
				<a href="#"><fmt:message key="html.agreement"/></a>
				</td>
			</tr>
		</table>
</form>
</div>
</div>